<div class="section">

	<div class="section-title">Báo cáo thu chi</div>
    
    <div class="section-content">
    	
        <form action="" method="post" id="listitem" name="listitem">
        	
        	<div class="button right">
            	
                <input class="button" type="button" name="btnAdd" value="Thêm" onclick="window.location='<?php echo $insert?>'"/>  
            	<input class="button" type="button" name="delete_all" value="Xóa" onclick="deleteorder()"/>  
            </div>
            <div class="clearer">&nbsp;</div>
            <div id="ben-search">
            	<p>
                    
                    <label>Ngày</label>
                    từ
                    <input type="text" id="tungay" name="tungay" class="text ben-datepicker" />
                    đến
                    <input type="text" id="denngay" name="denngay" class="text ben-datepicker" />
                    
                </p>
                
                <input type="button" class="button" name="btnSearch" value="Xem" onclick="xembaocao()"/>
                
            </div>
            <div id="baocaoshow" class="sitemap treeindex">
                
                
            </div>
        
        
        </form>
        
    </div>
    
</div>
<script language="javascript">

function xembaocao()
{
	var url =  "?route=ben/baocao/thuchishow";
	$.post(url,
		{
			tungay:$('#tungay').val(),
			denngay:$('#denngay').val()
		}
		,
		function(data){
			$('#baocaoshow').html(data);
		}
	);
	
}

$("#sophieu").val("<?php echo $_GET['sophieu']?>");
$("#tungay").val("<?php echo $_GET['tungay']?>");
$("#denngay").val("<?php echo $_GET['denngay']?>");
$("#tenkhachhang").val("<?php echo $_GET['tenkhachhang']?>");
$("#dienthoai").val("<?php echo $_GET['dienthoai']?>");
$("#sotientu").val("<?php echo $_GET['sotientu']?>");
$("#sotienden").val("<?php echo $_GET['sotienden']?>");

</script>